import QtQuick 2.6
import Qt.labs.controls 1.0
import QtQuick.Layouts 1.1
import "../lib"

Navigator {
    id: nav
    title: "支付凭据"
    submitted: true

    contentHeight: Math.max(iHEIGHT * 12, height)

    ColumnLayout {
        anchors.fill: parent

        View {
            Layout.fillWidth: true
            Layout.preferredHeight: iHEIGHT * 2
            RowLayout {
                anchors.fill: parent
                anchors.margins: iWIDTH
                Label {
                    text: "描述"
                }

                TextField {
                    Layout.preferredWidth: parent.width * 0.8
                }
            }
        }

        GroupBox {
            title: "凭据截图"

            Layout.alignment: Qt.AlignHCenter
            ColumnLayout {
                anchors.fill: parent
                Image {
                    source: "../image/image-placeholder.svg"
                    sourceSize: Qt.size(nav.width * 0.8, nav.width * 0.8)
                    width: nav.width * 0.9
                    height: nav.width * 0.8
                }
            }
        }
    }
}
